package com.winning.sjzc.old.service.impl;

import com.winning.sjzc.old.dao.ZyglDao;
import com.winning.sjzc.old.service.ZyglService;
import com.winning.sjzc.zygl.entity.Zygl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/*
 * @Author tangzj
 * @Description 值域管理 服务
 * @Date 2019/5/10 9:07
 **/
//@Service
public class ZyglServiceImpl implements ZyglService {

    @Autowired
    private ZyglDao zyglDao;

    @Override
    public List queryList(Map map) {
        return zyglDao.selectByMap(map);
    }

    @Override
    public List queryZyTree() {
        return zyglDao.queryZyTree();
    }

    @Override
    public void saveZy(Zygl zygl) {
        zyglDao.insert(zygl);
    }

    @Override
    public void delete(Map<String, Object> map) {
        this.zyglDao.deleteByMap(map);
    }

    @Override
    public Long queryByZydm( Map<String,Object> map) {
       return this.zyglDao.queryByZydm(map);
    }

    @Override
    public Long queryByZdm(Map<String, Object> map) {
        return this.zyglDao.queryByZdm(map);
    }

    @Override
    public void update(Zygl zygl) {
        this.zyglDao.updateZy(zygl);
    }

    @Override
    public void delFromUpdate(Zygl zygl) {
        this.zyglDao.delFromUpdate(zygl);
    }

    @Override
    public void updateZy(Zygl zygl) {
        this.zyglDao.updateZy(zygl);
    }

    @Override
    public void updateZyx(Zygl zygl) {
        this.zyglDao.updateZyx(zygl);
    }

    @Override
    public Zygl queryTop1(Zygl zyglQ) {
        return this.zyglDao.queryTop1(zyglQ);
    }

    @Override
    public Zygl getZygl(Map<String, Object> map) {
        return this.zyglDao.getZygl(map);
    }

    @Override
    public void saveZyx(Zygl zygl) {
        this.zyglDao.insert(zygl);
    }




}
